<template>
    <div>
        <div class="header flex justify-between items-center">
            <div style="opacity: 0;">
                <el-button style="margin-left: 30px">取消</el-button>
            </div>
            <div>我是头部</div>
            <div>
                <el-button style="margin-right: 30px" @click="cancel">取消</el-button>
            </div>
        </div>
    </div>
</template>

<script>
  export default {
    name: 'HeaderNav',
    methods:{
      cancel(){
        this.$emit('cancel',false);
      }
    }
  }
</script>

<style scoped>
    .header {
        width: 100%;
        height: 60px;
        background-color: #FFFFFF;
    }
</style>